/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package towerdefence.model;

import net.phys2d.raw.Body;
import net.phys2d.raw.shapes.Shape;

/**
 *
 * @author Gussoh
 */
public abstract class CannonBall extends Body implements Purchaseable {

    private Cannon cannon;
    
    public CannonBall(Cannon cannon, Shape shape, float m) {
        super(shape, m);
        this.cannon = cannon;
        addExcludedBody(cannon);
        this.setPosition(cannon.getCannonBallOrigin().getX(), cannon.getCannonBallOrigin().getY());
    }
}
